package com.lagou.k8s.controller;

import com.lagou.k8s.dao.OrderDao;
import com.lagou.k8s.entity.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author yutao
 * @create 2020-11-10 15:40
 **/
@RequestMapping("order")
@RestController
public class OrderController {

    @Autowired
    private OrderDao orderDao;

    @RequestMapping("list")
    public List<Order> list(){
        return orderDao.findAll();
    }
}
